@import "./vars.scss";

.product-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 126px;
  .product_h2 {
    margin-top: 95px;
    margin-bottom: 63px;
    text-align: center;
  }

  .product-section {
    overflow: hidden;
  }
  .product_h2 {
    margin-top: 95px;
    margin-bottom: 43px;
    text-align: center;
  }

  .product-list {
    @include display(flex);
    @include justify-content(center);
    @include flex-wrap(wrap);
  }

  .product-item {
    margin-top: 20px;
    width: 50%;
    @include flex-basis(50%);
    padding: 0 px2per2(40, 1160);
    text-align: center;
  }

  .pic-wrapper {
    // overflow: hidden;
    img {
      object-fit: cover;
      width: 100%;
    }
  }

  .prm-icon {
    height: 80px;
    @include display(flex);
    @include justify-content(center);
    @include align-items(center);
  }

  .prm-title {
    font-size: px2vw(21);
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .prm-more {
    font-size: 13px;
    @include transition(color 0.3s);
    &:hover,
    &.on {
      color: $active;
      .prm-line {
        &:before {
          width: 100%;
        }
      }
    }

    .more-dfn {
      @include display(inline-flex);
      @include flex-direction(column);
    }

    .prm-line {
      width: 100%;
      height: 2px;
      display: block;
      margin-top: 7px;
      background-color: $color8;
      position: relative;
      &:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        @include transition(width 0.3s);
        width: 0;
        height: 100%;
        background-color: $active;
      }
    }
  }
}

.solutions-section {
  background-color: $bg1;
  overflow: hidden;
  padding-bottom: px2vw(190);
  position: relative;

  .sol-header {
    position: relative;
    z-index: 3;
    .sol-h2 {
      margin-top: 109px;
      margin-bottom: 51px;
      font-size: 34px;
      height: 34px;
      font-weight: bold;
    }

    .solswp-box {
      position: absolute;
      width: 50%;
      height: 46px;
      @include display(flex);
      justify-content: flex-end;
      right: 0;
      bottom: -101px;

      .parger {
        @include display(flex);
        @include align-items(flex-end);
        color: $color2;
        font-family: "Nexa-Trial-Book";
        font-weight: bold;
        font-size: 14px;
        padding-bottom: 6px;
        padding-right: 51px;
        .parger-active {
          font-size: 24px;
          color: $color;
        }
        i {
          margin: 0 7px 0 10px;
        }
      }

      .parger-btn {
        @include display(flex);
        dfn {
          width: 46px;
          cursor: pointer;
          @include user-select(none);
          height: 46px;
          // background-color: $active;
          @include display(flex);
          @include align-items(center);
          @include justify-content(center);
          &:first-child {
            margin-right: 14px;
          }

          .iconfont {
            font-size: 20px;
            font-weight: bold;
            color: #fff;
          }
        }
      }
    }
  }
  .solswp {
    width: 100%;
    height: 100%;

    .solswp-slide {
      @include display(flex);
      @include transition(all 1.5s);
      transform-origin: right 60%;
      &.swiper-slide-prev {
        transform-origin: center center;
      }
      &.swiper-slide-active {
        transform-origin: center center;
      }

      .solswp-figure-info {
        padding: 0 43px;
      }
      .solswp-figure {
        width: 100%;
        @include display(flex);
        @include flex-direction(column);
        img {
          width: 100%;
        }
        .h3 {
          font-size: 24px;
          will-change: margin-top;
          transition: margin-top 1s;
          margin-top: 47px;
          margin-bottom: 23px;
          font-weight: bold;
        }
        .p {
          font-size: 16px;
          color: $color1;
          @include transition(opacity 1.5s);
          opacity: 1;
          @include line-clamp(3);
        }
        .solswp-pic {
          position: relative;
        }
      }
    }

    .swiper-slide-active {
      transform: scale(1);
      transform-origin: center center;
    }

    .swiper-slide-next {
      .solswp-figure-info {
        padding: 0 20px;
      }
      .solswp-figure {
        .solswp-pic {
          &:after {
            display: none;
          }
        }
        .h3 {
          margin-top: 27px;
          font-size: 20px;
          text-align: center;
        }
        .p {
          opacity: 0;
        }
      }
    }
  }
}

.about-section {
  position: relative;
  color: #fff;
  .about-bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .about_h2 {
    position: relative;
    padding-top: px2vw(116);
    padding-bottom: px2vw(102);
    text-align: center;
  }

  .absn-content {
    @include display(flex);
    padding-bottom: px2vw(50);

    position: relative;
    @include justify-content(space-between);

    .absn-more {
      position: absolute;

      right: 0;
      bottom: -36px;
    }
    .absn-left {
      position: relative;
      flex-basis: px2vw(552);
    }

    .absn-right {
      flex-basis: px2vw(646);
    }
  }
}

.blog-section {
  position: relative;
  padding-bottom: 58px;
  .blog_h2 {
    text-align: center;
    padding-bottom: 63px;
  }
  .blog-tabline {
    @include display(flex);
    height: 14px;
    @include justify-content(center);
    margin-bottom: 46px;
    .blog-li {
      padding: 0 32px;
      height: 14px;
      overflow: hidden;
      cursor: pointer;
      &.on {
        color: $active;
      }
    }
  }
  .blog-body-container {
    .blog-body {
      display: none;
      &.on {
        display: block;
      }
    }
    .blog-figure img {
      width: 100%;
    }
  }

  .blog-footer {
    text-align: center;
    margin-top: 30px;
  }
}

@media screen and (max-width: 1919px) {
  .about-section .absn-content .absn-left {
    flex-basis: px2vw(650);
  }
  .about-section .absn-content .absn-right .absn-h4-p {
    line-height: 1.5;
  }
  .about-section .absn-content .absn-right .absn-h5-p {
    line-height: 1.5;
  }
}

@media screen and (max-width: 768px) {
  .product-section {
    padding: 0 15px 30px;
  }
  .product-section .product-list {
    @include flex-direction(column);
  }
  .product-section .product-item {
    margin-top: 15px;
    width: 100%;
  }
  .product-section .product_h2 {
    margin: 30px 0 0;
  }
  .solutions-section {
    padding: 0 15px 20px;
  }
  .solutions-section .sol-header .solswp-box .parger-btn {
    // display: none;
  }
  .solutions-section .solswp .solswp-slide .solswp-figure-info {
    padding: 0;
  }
  .solutions-section .solswp .solswp-slide .solswp-figure .h3 {
    margin: 15px 0;
    word-break: break-all;
    text-overflow: unset;
    white-space: unset;
    font-size: 18px;
  }
  .solutions-section .solswp .solswp-slide .solswp-figure .p {
    word-break: break-all;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 400;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
  .solutions-section .sol-header .sol-h2 {
    margin: 30px 0 15px;
    font-size: 30px;
    text-align: left;
  }
  .solutions-section .sol-header .solswp-box {
    bottom: unset;
    top: 0;
  }
  .solutions-section .sol-header .solswp-box .parger {
    display: none;
  }
  .solutions-section .sol-header .solswp-box .parger-btn dfn {
    width: 30px;
    height: 30px;
  }
  .about-section .about_h2 {
    padding: 30px 0 20px;
  }
  .about-section .absn-content {
    padding: 0 15px 20px;
    flex-direction: column-reverse;
  }
  .company_profile .absn-h4 {
    margin-top: 0;
    font-size: 20px;
  }
  .company_profile .absn-h5 {
    margin-top: 20px;
    font-size: 20px;
  }
  .company_profile .absn-h4-p {
    margin-top: 10px;
  }
  .about-section .absn-content .absn-left {
    margin-top: 20px;
  }
  .company_profile .info {
    left: -170px;
    text-align: right;
  }
  .about-section .absn-content .absn-more {
    right: 15px;
    bottom: -25px;
    width: 170px;
    height: 50px;
  }
  .product-section .prm-title {
    font-size: 12px;
  }
  .bservice-section {
    padding: 0 15px 20px;
  }
  .bservice-section .service_h2 {
    padding: 60px 0 20px;
  }
  .bservice-section .service-body {
    margin-top: 0;
  }
  .bservice-section .service-body .service-item {
    height: unset;
    line-height: 1.5;
  }
  .blog-section .blog_h2 {
    padding: 40px 0 20px;
  }

  .blog-section .blog-tabline .blog-li {
    width: 50%;
    padding: 0 15px;
    text-align: center;
  }
  .blog-section {
    padding: 0 15px 20px;
  }
  .blog-section .blog-tabline {
    margin-bottom: 20px;
  }
  .blog-item .blog-h4 {
    margin: 15px 0;
  }
  .blog-item .blog-p {
    overflow: unset;
    line-height: 1.5;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
  .blog-item .blog-info,
  .blog-section .blog-footer {
    margin-top: 20px;
  }
  .blog-item {
    padding-bottom: 0;
  }
}

@media screen and (min-width: 1921px) {
  .product-section .prm-title {
    font-size: 21px;
  }
  .solutions-section {
    padding-bottom: 190px;
  }
  .about-section .about_h2 {
    padding-top: 116px;
    padding-bottom: 102px;
  }
  .about-section .absn-content .absn-left {
    flex-basis: 552px;
  }
  .about-section .absn-content .absn-right .absn-h4 {
    margin-top: 68px;
  }
  .about-section .absn-content .absn-right .absn-h4-p {
    margin-top: 46px;
  }
  .about-section .absn-content .absn-right {
    flex-basis: 646px;
  }
}
